//
//  AuditDetailHeaderView.m
//  YunKang
//
//  Created by leoking870 on 2017/10/4.
//  Copyright © 2017年 leoking870. All rights reserved.
//

#import "AuditDetailHeaderView.h"
#import <UIImageView+WebCache.h>
@interface AuditDetailHeaderView ()
@property (weak, nonatomic) IBOutlet UIImageView *drugImageView;
@property (weak, nonatomic) IBOutlet UILabel *drugNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *drugGuiGeLabel;//规格
@property (weak, nonatomic) IBOutlet UILabel *drugFactoryLabel;
@property (weak, nonatomic) IBOutlet UILabel *drugPackageLabel;

@end



@implementation AuditDetailHeaderView
- (void)setModel:(YKProductInfoModel *)model
{
    _model = model;
    [self.drugImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://yunkangmall.njnwyy.com:8084%@",model.FACE_PIC1]]];
    
    self.drugNameLabel.text = model.GENERIC_NAME;
    self.drugGuiGeLabel.text = model.CPACKINGTYPE;
    self.drugFactoryLabel.text = model.CINVMNEM_CODE;
    self.drugPackageLabel.text = model.CENTERPRISE;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
